import request from '@/utils/request'

export function getUserList(data) {
    // 获取用户列表
    return request({
        url: '/user/getPageList',
        method: 'post',
        data
    })
}

export function addUser(data) {
    // 添加用户
    return request({
        url: '/user/save',
        method: 'post',
        data
    })
}

export function editUser(data) {
    // 修改用户
    return request({
        url: '/user/update',
        method: 'post',
        data
    })
}

export function deleteUser(data) {
    // 删除用户
    return request({
        url: '/user/delete',
        method: 'post',
        data
    })
}